import requests
url = 'https://movie.douban.com/mine?status=collect'
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0'
}
with open('douban.cookie','r') as f:
    headers['cookie'] = f.read()

print(headers)
print(requests.get(url,headers=headers).text)